<%@page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="whf.framework.datasource.*"%>
<%@ page import="whf.framework.datasource.impl.*"%>

<%@taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/common/inc/select.jsp" %>
</head>
<body>
<%
Map map = new HashMap();
map.put("id", 1);
map.put("name", "King");
map.put("type", "");
MapDataRow row = new MapDataRow(map, "id", "name");
List<DataRow> dataSource = new ArrayList<DataRow>();
dataSource.add(row);
//
%>

<framework:table id="1" pkStyle="checkbox_counter" navPosition="both" dataSource="<%= new CollectionDataSource(dataSource) %>">
	<framework:column property="id" displayTitle="唯一ID" />
	<framework:column property="name" />
</framework:table>

<framework:table id="2" displayStyle="form" editable="true" dataSource="<%= new CollectionDataSource(dataSource) %>">
	<framework:column property="id" />
	<framework:column property="name" />
	<framework:column property="type" />
</framework:table>
</body>
</html> 